import axios from '@/utils/axios'

const addTagApi = '/sp_admin/tags/add' // 新增
const tagListApi = '/sp_admin/tags/list' // 列表
const delTabApi = '/sp_admin/tags/remove' // 套餐

/**
 * @desc 新增
 */
export const addTag = ({ params }) => {
  return axios({
    url: addTagApi,
    method: 'post',
    params: params
  })
}

/**
 * @desc 列表
 */
export const tagList = () => {
  return axios({
    url: tagListApi,
    method: 'get'
  })
}

/**
 * @desc 套餐
 */
export const delTab = ({ params }) => {
  return axios({
    url: delTabApi,
    method: 'delete',
    params: params
  })
}

